<?php


class ContactTable extends Doctrine_Table
{
    
    public static function getInstance()
    {
        return Doctrine_Core::getTable('Contact');
    }

    static public function chercherContact($chaine){
        $contacts = Doctrine_Query::create()
            ->from('Contact c')
            ->where('c.nom like ?', $chaine )
            ->orWhere('c.prenom like ?', $chaine);
        return $contacts;
    }
}